//
//  BackMoneyHeader.h
//  JinChengYun
//
//  Created by 金橙云 on 2017/4/7.
//  Copyright © 2017年 金橙云. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ZFLineChart.h"
#import "ListChartView.h"

  
@class TodoHttpManager;
typedef void (^returnSegmentIndexBlock)(NSInteger segmentIndex);
@interface BackMoneyHeader : UIView <ListChartViewDelegate,ZFGenericChartDataSource,ZFLineChartDelegate>{
    UIButton *_selectTypeBtn;
    NSInteger segmentIdex;//记录按某种类型查看网格segment的index
    NSInteger segmentIdex2;//记录年月segment的index
    NSArray *_hengyiArr;
    NSInteger xialainteger;//记录点击下拉列表的第几个
}

@property(nonatomic,strong)UILabel *hengLab;//回款动态
@property(nonatomic,strong)UISegmentedControl *segmented1;//记录按某种类型查看网格segment
@property(nonatomic,strong)UISegmentedControl *segmented2;//记录年月segment

@property(nonatomic,strong)UIScrollView *scrollerView;

@property(nonatomic,strong)ListChartView *chatView;

@property (nonatomic, strong) ZFLineChart * lineChart;

@property(nonatomic,strong)NSMutableDictionary *biaoDic;
@property(nonatomic,strong)NSMutableDictionary *tuDic;

@property (nonatomic, strong) NSArray         *zuoyishuArr;//左一 物业类型+期数
@property (nonatomic, strong) NSArray         *nozuiyiArr;//无左一 物业类型+期数
@property (nonatomic, strong) NSDictionary         *xialiDic;//下来字典 ID+name两个数组
@property (nonatomic, strong) NSArray         *zhexiantuArr;//折线图 年+月





@property(nonatomic,strong)TodoHttpManager *manager;
@property(nonatomic,strong)UIView *orageView;
@property(nonatomic,strong)UILabel *dXLab;
@property(nonatomic,strong)UILabel *yXLab;
@property(nonatomic,strong)UILabel *wXLab;
@property(nonatomic,strong)UILabel *huiLab;
@property(nonatomic,strong)NSMutableDictionary *huiDic;
@property(nonatomic,strong)NSMutableDictionary *danDic;
@property(nonatomic,strong)NSMutableArray *danArr;

@property(nonatomic,strong)UISegmentedControl *segmented;

@property(nonatomic,strong)UILabel *labA;
@property (nonatomic, copy) returnSegmentIndexBlock returnTextBlock;

- (void)returnText:(returnSegmentIndexBlock)block;
@end
